#pragma once

class Block {
public:
    Block(int size = 4096);
    Block(unsigned char c, int capacity = 4096, int repeat = 1);
    ~Block();

    int size() const;
    unsigned char * data();

private:
    int checkedAlign(int size);

private:
    unsigned char * _data;
    int _size;
};
